package oop11;

/**
 * @author oldliu
 * @since 1.0
 */
public class UsbFan implements Usb {
    private String brand;
    public UsbFan(String b){
        this.brand=b;
    }

    @Override
    public String toString() {
        return "这是一台"+this.brand+"的电风扇";
    }

    @Override
    public void plugin() {
        System.out.println(this.brand+"接上的usb口，电源灯亮起");
    }

    @Override
    public void work() {
        System.out.println(this.brand+"持续送出凉风");
    }

    @Override
    public void unplugin() {
        System.out.println(this.brand+"从usb口拔出，电源灯熄灭");
    }
}
